home *** CD-ROM | disk | FTP | other *** search
/ Languguage OS 2 / Languguage OS II Version 10-94 (Knowledge Media)(1994).ISO / a_utils / perl / prlbkxmp.lha / ch5 / randelem.eg < prev    next >
Text File  |  1991-01-08  |  183b  |  7 lines

  1. @cards = ('C01'..'C13','D01'..'D13','H01'..'H13','S01'..'S13');
  2. while (@cards) {
  3.     $card = splice(@cards, rand @cards, 1);
  4.     print "$card ";
  5.     print "\n" if @cards % 13 == 0;
  6. }
  7.